'use strict';

// Declare app level module which depends on views, and components
angular.module('myApp', [
    'ngRoute',
    'ngResource',
    'myApp.index',
    'myApp.hekaview',
    'myApp.hekaadd',
    'myApp.shareview'
]).
config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) {
    $routeProvider.otherwise({redirectTo: '/apps'});
}]).
factory('Heka', ['$resource', function ($resource) {
    return $resource('/api/heka/:id', {id: '@id'});
}]);
